<?php namespace Zmsun\Copen;class DummyClass{protected$className;protected$registedMethods=array();protected$openLib;public function __construct($className,OpenLib$openLib){$this->className=$className;$this->openLib=$openLib;}public function __call($method,$params){$exec=false;foreach($this->registedMethods as$name=>&$p){if(!strcasecmp($method,$name)){$p=$params;$exec=true;break;}}if(!$exec)$this->registedMethods[$method]=$params;return$this;}public function exec(){$errorMsg="";if(false===$res=$this->openLib->apiReq("member",$this->className,$this->registedMethods,$errorMsg)){$result=['status'=>"error",'error_msg'=>$errorMsg];}else{$result=['status'=>'ok','info'=>$res];}return$result;}}?>